// To parse this JSON data, do
//
//     final zjHomePositionModel = zjHomePositionModelFromJson(jsonString);

import 'dart:convert';

ZJHomePositionModel zjHomePositionModelFromJson(String str) => ZJHomePositionModel.fromJson(json.decode(str));

String zjHomePositionModelToJson(ZJHomePositionModel data) => json.encode(data.toJson());

class ZJHomePositionModel {
  ZJHomePositionModel({
    this.treatment,
    this.companyCityName,
    this.education,
    this.gender,
    this.tagId,
    this.companyName,
    this.latitude,
    this.industry,
    this.cityId,
    this.natureOfBusiness,
    this.number,
    this.pushTitle,
    this.industryId,
    this.cityName,
    this.pushPosition,
    this.countyId,
    this.bonusAmount,
    this.referredName,
    this.startWorkYear,
    this.natureOfBusinessName,
    this.logo,
    this.id,
    this.rewardAmount,
    this.createrId,
    this.tag,
    this.pushPositionId,
    this.addr,
    this.pushTime,
    this.endWorkYear,
    this.endSalary,
    this.countyName,
    this.longitude,
    this.portraitUrl,
    this.numberName,
    this.officeAddress,
    this.provinceId,
    this.createrName,
    this.workId,
    this.pushType,
    this.companyId,
    this.startSalary,
    // this.location,
    this.provinceName,
    this.describe,
    this.workYear,
    this.endTime,
    this.status,
    this.officePosition,
  });

  String treatment;
  String companyCityName;
  int education;
  int gender;
  String tagId;
  String companyName;
  double latitude;
  String industry;
  int cityId;
  int natureOfBusiness;
  int number;
  String pushTitle;
  int industryId;
  String cityName;
  String pushPosition;
  int countyId;
  double bonusAmount;
  String referredName;
  int startWorkYear;
  String natureOfBusinessName;
  String logo;
  String id;
  double rewardAmount;
  int createrId;
  String tag;
  int pushPositionId;
  String addr;
  String pushTime;
  int endWorkYear;
  double endSalary;
  String countyName;
  double longitude;
  String portraitUrl;
  String numberName;
  String officeAddress;
  String officePosition;
  int provinceId;
  String createrName;
  int workId;
  int pushType;
  String companyId;
  double startSalary;
  // List<double> location;
  String provinceName;
  String describe;
  String workYear;
  String endTime;
  int status;

  factory ZJHomePositionModel.fromJson(Map<String, dynamic> json) => ZJHomePositionModel(
    treatment: json["treatment"],
    companyCityName: json["companyCityName"],
    education: json["education"],
    gender: json["gender"],
    tagId: json["tagId"],
    companyName: json["companyName"],
    latitude: json["latitude"].toDouble(),
    industry: json["industry"],
    cityId: json["cityId"],
    natureOfBusiness: json["natureOfBusiness"],
    number: json["number"],
    pushTitle: json["pushTitle"],
    industryId: json["industryId"],
    cityName: json["cityName"],
    pushPosition: json["pushPosition"],
    countyId: json["countyId"],
    bonusAmount: json["bonusAmount"],
    referredName: json["referredName"],
    startWorkYear: json["startWorkYear"],
    natureOfBusinessName: json["natureOfBusinessName"],
    logo: json["logo"],
    id: json["id"],
    rewardAmount: json["rewardAmount"],
    createrId: json["createrId"],
    tag: json["tag"],
    pushPositionId: json["pushPositionId"],
    addr: json["addr"],
    pushTime: json["pushTime"],
    endWorkYear: json["endWorkYear"],
    endSalary: json["endSalary"],
    countyName: json["countyName"],
    longitude: json["longitude"].toDouble(),
    portraitUrl: json["portraitUrl"],
    numberName: json["numberName"],
    officeAddress: json["officeAddress"],
    provinceId: json["provinceId"],
    createrName: json["createrName"],
    workId: json["workId"],
    pushType: json["pushType"],
    companyId: json["companyId"],
    startSalary: json["startSalary"],
    // location: List<double>.from(json["location"].map((x) => x.toDouble())),
    provinceName: json["provinceName"],
    describe: json["describe"],
    workYear: json["workYear"],
    endTime: json["endTime"],
    status: json["status"],
    officePosition: json["officePosition"],
  );

  Map<String, dynamic> toJson() => {
    "treatment": treatment,
    "companyCityName": companyCityName,
    "education": education,
    "gender": gender,
    "tagId": tagId,
    "companyName": companyName,
    "latitude": latitude,
    "industry": industry,
    "cityId": cityId,
    "natureOfBusiness": natureOfBusiness,
    "number": number,
    "pushTitle": pushTitle,
    "industryId": industryId,
    "cityName": cityName,
    "pushPosition": pushPosition,
    "countyId": countyId,
    "bonusAmount": bonusAmount,
    "referredName": referredName,
    "startWorkYear": startWorkYear,
    "natureOfBusinessName": natureOfBusinessName,
    "logo": logo,
    "id": id,
    "rewardAmount": rewardAmount,
    "createrId": createrId,
    "tag": tag,
    "pushPositionId": pushPositionId,
    "addr": addr,
    "pushTime": pushTime,
    "endWorkYear": endWorkYear,
    "endSalary": endSalary,
    "countyName": countyName,
    "longitude": longitude,
    "portraitUrl": portraitUrl,
    "numberName": numberName,
    "officeAddress": officeAddress,
    "provinceId": provinceId,
    "createrName": createrName,
    "workId": workId,
    "pushType": pushType,
    "companyId": companyId,
    "startSalary": startSalary,
    // "location": List<dynamic>.from(location.map((x) => x)),
    "provinceName": provinceName,
    "describe": describe,
    "workYear": workYear,
    "endTime": endTime,
    "status": status,
    "officePosition":officePosition,
  };
}
